package net.vkits.api;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import net.vkits.admin.domain.model.Content;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * Created by ethan-liu on 2017/1/14.
 */
@Api(value = "contents", description = "the contents API")
@RequestMapping("/api/v2")
public interface ContentsApi {
    @ApiOperation(value = "return contents list", notes = "return contents list", response = Content.class, responseContainer = "List", tags={ "contents", })
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "return contents list", response = Content.class),
            @ApiResponse(code = 404, message = "something wrong", response = Content.class) })
    @RequestMapping(value = "/contents",
            produces = { "application/json" },
            method = RequestMethod.GET)
    ResponseEntity<List<Content>> contentsGet();
}
